///*
// * kheap.h
// *
// *  Created on: 19/12/2010
// *      Author: wendell
// */
//
//#ifndef KHEAP_H_
//#define KHEAP_H_
//
//#include <ordered_array.h>
//
//typedef struct
//{
//    ordered_array_t index;
//    uint start_address; // The start of our allocated space.
//    uint end_address;   // The end of our allocated space. May be expanded up to max_address.
//    uint max_address;   // The maximum address the heap can be expanded to.
//    uchar supervisor;     // Should extra pages requested by us be mapped as supervisor-only?
//    uchar readonly;       // Should extra pages requested by us be mapped as read-only?
//} heap_t;
//
//uint kmalloc_a(uint sz);  // page aligned.
//uint kmalloc_p(uint sz, uint *phys); // returns a physical address.
//uint kmalloc_ap(uint sz, uint *phys); // page aligned and returns a physical address.
//uint kmalloc(uint sz); // vanilla (normal).
//
//#endif /* KHEAP_H_ */
